package com.leyou.domain.db1entity;

import java.util.ArrayList;
import java.util.List;

public class ConditionExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ConditionExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andConditionkeyIsNull() {
            addCriterion("conditionkey is null");
            return (Criteria) this;
        }

        public Criteria andConditionkeyIsNotNull() {
            addCriterion("conditionkey is not null");
            return (Criteria) this;
        }

        public Criteria andConditionkeyEqualTo(String value) {
            addCriterion("conditionkey =", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyNotEqualTo(String value) {
            addCriterion("conditionkey <>", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyGreaterThan(String value) {
            addCriterion("conditionkey >", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyGreaterThanOrEqualTo(String value) {
            addCriterion("conditionkey >=", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyLessThan(String value) {
            addCriterion("conditionkey <", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyLessThanOrEqualTo(String value) {
            addCriterion("conditionkey <=", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyLike(String value) {
            addCriterion("conditionkey like", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyNotLike(String value) {
            addCriterion("conditionkey not like", value, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyIn(List<String> values) {
            addCriterion("conditionkey in", values, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyNotIn(List<String> values) {
            addCriterion("conditionkey not in", values, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyBetween(String value1, String value2) {
            addCriterion("conditionkey between", value1, value2, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditionkeyNotBetween(String value1, String value2) {
            addCriterion("conditionkey not between", value1, value2, "conditionkey");
            return (Criteria) this;
        }

        public Criteria andConditiontypeIsNull() {
            addCriterion("conditiontype is null");
            return (Criteria) this;
        }

        public Criteria andConditiontypeIsNotNull() {
            addCriterion("conditiontype is not null");
            return (Criteria) this;
        }

        public Criteria andConditiontypeEqualTo(String value) {
            addCriterion("conditiontype =", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeNotEqualTo(String value) {
            addCriterion("conditiontype <>", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeGreaterThan(String value) {
            addCriterion("conditiontype >", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeGreaterThanOrEqualTo(String value) {
            addCriterion("conditiontype >=", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeLessThan(String value) {
            addCriterion("conditiontype <", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeLessThanOrEqualTo(String value) {
            addCriterion("conditiontype <=", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeLike(String value) {
            addCriterion("conditiontype like", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeNotLike(String value) {
            addCriterion("conditiontype not like", value, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeIn(List<String> values) {
            addCriterion("conditiontype in", values, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeNotIn(List<String> values) {
            addCriterion("conditiontype not in", values, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeBetween(String value1, String value2) {
            addCriterion("conditiontype between", value1, value2, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andConditiontypeNotBetween(String value1, String value2) {
            addCriterion("conditiontype not between", value1, value2, "conditiontype");
            return (Criteria) this;
        }

        public Criteria andPointsIsNull() {
            addCriterion("points is null");
            return (Criteria) this;
        }

        public Criteria andPointsIsNotNull() {
            addCriterion("points is not null");
            return (Criteria) this;
        }

        public Criteria andPointsEqualTo(Integer value) {
            addCriterion("points =", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsNotEqualTo(Integer value) {
            addCriterion("points <>", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsGreaterThan(Integer value) {
            addCriterion("points >", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsGreaterThanOrEqualTo(Integer value) {
            addCriterion("points >=", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsLessThan(Integer value) {
            addCriterion("points <", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsLessThanOrEqualTo(Integer value) {
            addCriterion("points <=", value, "points");
            return (Criteria) this;
        }

        public Criteria andPointsIn(List<Integer> values) {
            addCriterion("points in", values, "points");
            return (Criteria) this;
        }

        public Criteria andPointsNotIn(List<Integer> values) {
            addCriterion("points not in", values, "points");
            return (Criteria) this;
        }

        public Criteria andPointsBetween(Integer value1, Integer value2) {
            addCriterion("points between", value1, value2, "points");
            return (Criteria) this;
        }

        public Criteria andPointsNotBetween(Integer value1, Integer value2) {
            addCriterion("points not between", value1, value2, "points");
            return (Criteria) this;
        }

        public Criteria andActivitykeyIsNull() {
            addCriterion("activitykey is null");
            return (Criteria) this;
        }

        public Criteria andActivitykeyIsNotNull() {
            addCriterion("activitykey is not null");
            return (Criteria) this;
        }

        public Criteria andActivitykeyEqualTo(String value) {
            addCriterion("activitykey =", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyNotEqualTo(String value) {
            addCriterion("activitykey <>", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyGreaterThan(String value) {
            addCriterion("activitykey >", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyGreaterThanOrEqualTo(String value) {
            addCriterion("activitykey >=", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyLessThan(String value) {
            addCriterion("activitykey <", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyLessThanOrEqualTo(String value) {
            addCriterion("activitykey <=", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyLike(String value) {
            addCriterion("activitykey like", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyNotLike(String value) {
            addCriterion("activitykey not like", value, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyIn(List<String> values) {
            addCriterion("activitykey in", values, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyNotIn(List<String> values) {
            addCriterion("activitykey not in", values, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyBetween(String value1, String value2) {
            addCriterion("activitykey between", value1, value2, "activitykey");
            return (Criteria) this;
        }

        public Criteria andActivitykeyNotBetween(String value1, String value2) {
            addCriterion("activitykey not between", value1, value2, "activitykey");
            return (Criteria) this;
        }

        public Criteria andQuoationIsNull() {
            addCriterion("quoation is null");
            return (Criteria) this;
        }

        public Criteria andQuoationIsNotNull() {
            addCriterion("quoation is not null");
            return (Criteria) this;
        }

        public Criteria andQuoationEqualTo(Integer value) {
            addCriterion("quoation =", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationNotEqualTo(Integer value) {
            addCriterion("quoation <>", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationGreaterThan(Integer value) {
            addCriterion("quoation >", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationGreaterThanOrEqualTo(Integer value) {
            addCriterion("quoation >=", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationLessThan(Integer value) {
            addCriterion("quoation <", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationLessThanOrEqualTo(Integer value) {
            addCriterion("quoation <=", value, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationIn(List<Integer> values) {
            addCriterion("quoation in", values, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationNotIn(List<Integer> values) {
            addCriterion("quoation not in", values, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationBetween(Integer value1, Integer value2) {
            addCriterion("quoation between", value1, value2, "quoation");
            return (Criteria) this;
        }

        public Criteria andQuoationNotBetween(Integer value1, Integer value2) {
            addCriterion("quoation not between", value1, value2, "quoation");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}
